%8-20  ʹstairsͼ

%ȶһʱ仯ĺʾ
>> alpha = 0.01;
>>beta = 0.5;
>>t = 0:10;
>>f = exp(-alpha*t).*sin(beta*t);
>>
%ʹstairsͼʾúݣʾ
>>stairs(t,f)
>>hold on
>>plot(t,f,'--*')
>>hold off
>>
%ٶͼμעͲļޡ
>>label = 'Stairstep plot of e^{-(\alpha*t)} sin\beta*t';
>>text(0.5,-0.2,label,'FontSize',14)
>>xlabel('t = 0:10','FontSize',14)
>>axis([0 10 -1.2 1.2])
>>
